
include ../Makefile.Res
Version:=5.4.1
ModuleName:=net-snmp

Object:=snmp.tgz
ObjectDir:=$(ModuleName)-$(Version)
ObjectSource:=$(ModuleName)-$(Version).tar.gz

DependFiles:=

ExtModuleNames:=

InstallDir:=/usr/local/net-snmp

Config:=--prefix=$(InstallDir) --enable-mini-agent --disable-applications --disable-manuals \
	--with-defaults --with-mib-modules="mibII ucd_snmp snmpv3mibs host" --with-transports="UDP TCP" \
	--without-root-access --disable-embedded-perl --disable-debugging
	#--disable-shared --disable-FEATURE --without-PACKAGE

.PHONY: all clean dist_clean

null:

all:$(Object) 

$(Object):$(ObjectSource) 
	tar -xzf $(ObjectSource)
	cd $(ObjectDir);./configure $(Config)
	$(MAKE) -C $(ObjectDir)
	$(MAKE) -C $(ObjectDir) install DESTDIR=`pwd`/
	rm -rf usr/local/share usr/local/man  usr/local/net-snmp/man usr/local/net-snmp/include 
	tar -czf $(Object) usr

clean:
	rm -rf $(Object) usr

dist_clean:clean
	rm -rf $(ObjectDir) $(ObjectSource) *.tar.gz
	
